package com.jhs.kjs.dto;

import java.util.Calendar;

import com.jhs.kjs.dto.util.abstractDTO;

public class DateDTO  extends abstractDTO{
	Calendar cal = Calendar.getInstance();
	
	private int yyyy=0;
	private int mm=0;
	private int dd=0;
	private int hh_start;
	private int mm_start;
	
	private int hh_end;
	private int mm_end;
	
	public int getTodayYYYY(){
		return cal.get(Calendar.YEAR);
	}
	
	public int getTodayMM(){
		return cal.get(Calendar.MONTH);
	}
	public int getTodayDD(){
		return cal.get(Calendar.DAY_OF_MONTH);
	}

	public int getYyyy() {
		return yyyy==0?getTodayYYYY():yyyy;
	}

	public void setYyyy(int yyyy) {
		this.yyyy = yyyy;
	}

	public int getMm() {
		return mm==0?getTodayMM():mm;
	}

	public void setMm(int mm) {
		this.mm = mm;
	}

	public int getDd() {
		return dd==0?getTodayDD():dd;
	}

	public void setDd(int dd) {
		this.dd = dd;
	}

	public int getHh_start() {
		return hh_start;
	}

	public void setHh_start(int hh_start) {
		this.hh_start = hh_start;
	}

	public int getMm_start() {
		return mm_start;
	}

	public void setMm_start(int mm_start) {
		this.mm_start = mm_start;
	}

	public int getHh_end() {
		return hh_end;
	}

	public void setHh_end(int hh_end) {
		this.hh_end = hh_end;
	}

	public int getMm_end() {
		return mm_end;
	}

	public void setMm_end(int mm_end) {
		this.mm_end = mm_end;
	}
	
	
}
